<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Order extends CI_Controller {
    
    public function index($productId){
        $this->load->model('Products', null, true);
        $data['Product'] = $this->Products->getProduct($productId);
        $this->load->view('/order/index', $data);
    }
}